package design_pattern.adapter;

public class HandlerAdapter extends Servlet {

    private final Controller controller;

    public HandlerAdapter(Controller controller) {
        this.controller = controller;
    }

    @Override
    public void service() {
        System.out.println("handler adapter service");
        controller.method();
    }
}
